using System.Configuration.Provider;
using System.Web.Security;

namespace PCC.Entity
{
    public class PCCMembershipUser
    {
        public MembershipUser MembershipUser(ProviderBase providerBase, User user)
        {
            return new MembershipUser(providerBase.Name, user.DisplayName, user.ID, user.EMail, user.PasswordQuestion,
                                      user.Comment, user.IsApproved, user.IsLockedOut, user.CreationDate, user.LastLoginDate, user.LastActivityDate,
                                      user.LastPasswordChangedDate, user.LastLockoutDate
                );
        }
    }
}